#ifndef __MODBUSSLAVE_H__
#define __MODBUSSLAVE_H__
#include "Usart.h"
#include "modbus.h"
#include "stm32f10x_it.h"
void    ModbusSlave_Task(void* pdata);
void    Task_ModbusSlave_Init(void);
uint8_t Set_Slave_id(uint16_t addr, uint8_t cmd, uint16_t length, uint8_t* data, uint32_t para);
uint8_t Reset_System(uint16_t addr, uint8_t cmd, uint16_t length, uint8_t* data, uint32_t para);
uint8_t Relay_Output(uint16_t addr, uint8_t cmd, uint16_t length, uint8_t* data, uint32_t para);
uint8_t Alarm_Output(uint16_t addr, uint8_t cmd, uint16_t length, uint8_t* data, uint32_t para);
uint8_t Sys_para_save(uint16_t addr, uint8_t cmd, uint16_t length, uint8_t* data, uint32_t para);
#endif
